package com.allen.admin.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/index")
public class IndexController {

    @RequestMapping("")
    @ResponseBody
    public String index(HttpServletRequest req, HttpServletResponse resp){
        System.out.println(req.getParameter("name"));
        return "hello world";
    }

}
